import requests
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker

from entity import ThsConvertibleBondInfo

ths_url = 'http://data.10jqka.com.cn/ipo/kzz/'
headers = {
    "Accept": "application/json, text/javascript, */*; q=0.01",
    "Dnt": "1",
    "Hexin-V": "A44l_EyPZjCT3tIU_XchdGWh329VD1IJZNMG7bjX-hFMGyCRIJ-iGTRjVv6L",
    "Referer": "http://data.10jqka.com.cn/ipo/bond/",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
}
r = requests.get(url=ths_url, headers=headers)
r_json = r.json()
print(r_json)